package com.wulee.notebook.db.db;

import com.wulee.notebook.bao.App;
import com.wulee.notebook.bean.Note;

import java.util.List;

public class DBUtls {

    //**************** 习惯 ***************//

    public static List<Note> queryNotesAll() {
        return DBInstance.getInstance(App.getContext()).getNoteDao().getAll();
    }

    public static int deleteNote(Note note) {
        return DBInstance.getInstance(App.getContext()).getNoteDao().delete(note);
    }

    public static long insertNote(Note note) {
        return DBInstance.getInstance(App.getContext()).getNoteDao().insert(note);
    }

}
